﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using WoSai.Base.Data.SqlServer;

namespace WoSai.Photo.Repository
{
    public class PhotoRepository
    {


        public SqlDataReader ShowHelp(int id)
        {
            SqlParameter[] parms = {
                                        SqlDBHelper.MakeInParam("@id", SqlDbType.Int, 4, id),                               
                                    };
            string sql = "SELECT [PhotoID], [Title],[Describe],[InputTime],[Path],[PathID] FROM [t_Photo_BaseInfo] WHERE [PhotoID]=@id";
            return SqlDBHelper.ExecuteReader(CommandType.Text, sql, parms);

        }
    }
}
